<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>

<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
  <tr bgcolor="#E4E4E4"> 
    <td width="5%">ID</td>
    <td width="5%">Order</td>
    <td width="15%">Name</td>
     <td width="40%">Summary</td>
    <td width="25%">URL</td>
    <td width="10%">Operation | <b><a href="listMenu_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
  </tr>
  <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
    <td colspan="5" align="center"><font color="#FF0000">{$error_message}</font></td>
  </tr>
  {foreach item=menu from=$arrMenuList}
  <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
    <td>{$menu.id}</td>
    <td>{$menu.orders}</td>
    <td>{$menu.name}</td>
    <td>{$menu.remark}</td>
    <td>{$menu.url}</td>
    <td>
    {assign var="isNotFirst" value="yes"}
    {section name=opItem loop=$arrOperateInfo}
    	{if $arrOperateInfo[opItem].viewName != 'Add'}
    		{if $smarty.section.opItem.index != 0 && $isNotFirst == 'no'}
	    		&nbsp;&nbsp;|&nbsp;&nbsp;
    	    {/if}
			{assign var="isNotFirst" value="no"}

    		<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$menu.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
        {/if}
    {/section}</td>
  </tr>
  {/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
  <tr>
      <td align="left" width="20%">{$PAGE_BAR}</td>
      <td align="center" width="80%"></td>
  </tr>
</table>
</body>
</html>

